<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link rel="stylesheet" href="js/bootstrap.min.css">
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/alert.js"></script>
<script type="text/javascript" language="JavaScript">
    $(function () {
        var myMsg = $("#myMsg").val();
        if(myMsg != null && myMsg !=''){
            myAlert("消息提示" , myMsg , function () {

            });
        }
        window.sessionStorage.removeItem("pwdMsg");
        function warnFun(){
            $('#warn2').load("/local/home")
            let warn = $("#warn").val();
            if(warn.length != 0 && warn != '无'){
                myAlert("火灾警报" , "着火地点：" + warn, function () {
                    clearInterval(timer)
                    $('#warn2').load("/local2/home")
                });
            }
        }
        timer = setInterval(warnFun , 2000)
    })
</script>
    <script type="text/css">

    </script>
</head>
<body>
<div th:replace="~{common/bar :: topbar(urlActive='home')}"></div>
<div>
    <div th:fragment="warn2" id="warn2" hidden="hidden">
        <input id="warn" th:value="${sensor}" value="无">
    </div>
      <div class="jumbotron" style="margin-top: -20px;text-align: center" >
          <h1 style="text-align: center;font-family: 方正粗活意简体;margin-top: 70px">林区防火监控平台</h1>
          <p style="text-align: center;margin-bottom: 20px"><h2>让林区更智能，让森林更安全，科技改变一切！</h2></p>
          <p style="margin-top: 15px"><a class="btn btn-primary btn-lg" href="http://slcyfh.mem.gov.cn/" role="button">Learn more</a></p>
      </div>
<!--    <input hidden th:value="${session.sensor}" id="warn">-->
<!--    <input hidden th:value="${sensor}" id="warn3">-->
    <div class="container">
        <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-7">
                <h3 style="margin-top: -10px;font-weight: bolder">本周新闻</h3>
                <div class="row" style="border: 4px">
                    <div class="col-md-6">
                        <div class="thumbnail">
                            <img src="./images/image/fire.png"/>
                            <div class="caption">
                             <a href="https://video.sina.com.cn/p/news/2020-05-01/detail-iircuyvi0909271.d.html"><h4>内蒙古大兴安岭林区发生雷电火灾</h4></a>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <h5>
                            <table style="width: 100%;height: 100%"  class="table table-condensed">
                                <tr>
                                    <td style="width: 10px">05.01&nbsp;</td>
                                    <td style="font-style: initial">|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1013/15135.htm" style="color: black">校领导带队赴五寨县开展扶贫入户摸排工作</a></td>
                                </tr>
                                <tr>
                                    <td>04.30</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1013/15115.htm" style="color: black">忻州市副市长范建民一行来校调研</a></td>
                                </tr>
                                <tr>
                                    <td>04.30</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1013/15115.htm" style="color: black">我校与朔州市人民政府、树兰医疗集团洽谈合作</a></td>
                                </tr>
                                <tr>
                                    <td>04.29</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1013/15057.htm" style="color: black">我校行知车队首次参加VI-grade2020 虚拟方程式大赛获佳绩</a></td>
                                </tr>
                                <tr>
                                    <td>04.29</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1013/15056.htm" style="color: black">自动开启、智慧集控——我校39间多媒体教室顺利完成升级改造</a></td>
                                </tr>
                            </table>
                        </h5>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <h3 style="margin-top: -10px;font-weight: bolder">通知公告</h3>
                <div class="row">
                    <div class="col-md-12">
                        <h5>
                            <table style="width: 100%;height: 100%"  class="table table-condensed">
                                <tr>
                                    <td style="width: 10px">05.01&nbsp;</td>
                                    <td style="font-style: initial">|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1014/15067.htm" style="color: black">关于对学校编外用工管理情况进行专项审计的公告</a></td>
                                </tr>
                                <tr>
                                    <td>05.12</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1014/15097.htm" style="color: black">中北大学2020年第三批博士研究生拟聘人员公示</a></td>
                                </tr>
                                <tr>
                                    <td>04.30</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1014/15071.htm" style="color: black">关于填报2020年度国防科技成果鉴定计划的通知</a></td>
                                </tr>
                                <tr>
                                    <td>04.27</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1014/15097.htm" style="color: black">中北大学2020年第三批博士研究生拟聘人员公示</a></td>
                                </tr>
                                <tr>
                                    <td>04.25</td>
                                    <td>|</td>
                                    <td><a href="http://www.nuc.edu.cn/info/1014/15118.htm" style="color: black">“五四”寄语</a></td>
                                </tr>
                            </table>
                        </h5>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <div th:replace="~{common/bar :: buttombar}"></div>
</div>
</body>
</html>